home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / disk / ncom23.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1997-04-08  |  4KB  |  73 lines

  1. @echo off
  2. rem
  3. rem  ****************************************************************
  4. rem  * USAGE: install.bat {drive:\NCOM-dir} {drive:\MS-Windows-dir} *
  5. rem  * (EXAMPLE: install.bat c:\ncom c:\windows )                   *
  6. rem  ****************************************************************
  7. rem
  8. if "%1"=="" goto help
  9. if "%2"=="" goto help
  10. if not exist %1\nul mkdir %1
  11. copy *.* %1
  12. if exist windows\nul goto windows_exist
  13. if not exist %2\vbio.vbx copy vbio.* %2
  14. if not exist %2\cmdialog.vbx copy cmdialog.vbx %2
  15. if not exist %2\mlistbox.vbx copy mlistbox.* %2
  16. if not exist %2\d&dserve.dll copy d&dserve.* %2
  17. if not exist vbrun100.dll goto vbrun_not_exist1
  18. if not exist %2\vbrun100.dll copy vbrun100.dll %2
  19. goto skip1
  20. :vbrun_not_exist1
  21. echo *******************************************************************
  22. echo * Note that VBRUN100.DLL is required in the path or in %2 !!!
  23. echo * Please download from well known places if you do not have it    *
  24. echo * (eg. at "ftp.cc.monash.edu.au" in "/pub/win3/util" with user    *
  25. echo * name "anonymous")!                                              *
  26. echo *******************************************************************
  27. echo .
  28. :skip1
  29. if not exist %2\ncom.mnu copy ncom.mnu %2
  30. if not exist %2\ncom.dmn copy ncom.dmn %2
  31. goto common
  32. :windows_exist
  33. if not exist %2\vbio.vbx copy windows\vbio.* %2
  34. if not exist %2\cmdialog.vbx copy windows\cmdialog.vbx %2
  35. if not exist %2\mlistbox.vbx copy windows\mlistbox.* %2
  36. if not exist %2\d&dserve.dll copy windows\d&dserve.* %2
  37. if not exist windows\vbrun100.dll goto vbrun_not_exist2
  38. if not exist %2\vbrun100.dll copy windows\vbrun100.dll %2
  39. goto skip2
  40. :vbrun_not_exist2
  41. echo *******************************************************************
  42. echo * Note that VBRUN100.DLL is required in the path or in %2 !!!
  43. echo * Please download from well known places if you do not have it    *
  44. echo * (eg. at "ftp.cc.monash.edu.au" in "/pub/win3/util" with user    *
  45. echo * name "anonymous")!                                              *
  46. echo *******************************************************************
  47. echo .
  48. :skip2
  49. if not exist %2\ncom.mnu copy windows\ncom.mnu %2
  50. if not exist %2\ncom.dmn copy windows\ncom.dmn %2
  51. :common
  52. echo *******************************************************************
  53. echo * Installation Completed! Please, call %1\NCOM.EXE
  54. echo * through the File Manager or create an Icon in the Program       *
  55. echo * Manager.                                                        *
  56. echo *                                                                 *
  57. echo * Read the file INSTALL.TXT for manual installation if there was  *
  58. echo * any problem with the installation.
  59. echo *                                                                 *
  60. echo * This Install Batch is too simple to check versions of the       *
  61. echo * Visual Basic Library files in %2. If you have already
  62. echo * got a library file with the same name as the one supplied with  *
  63. echo * this software the file is not overwritten. Please check         *
  64. echo * manually which library is newer and use the newest version.     *
  65. echo *******************************************************************
  66. goto end
  67.  
  68. :help
  69. echo ****************************************************************
  70. echo * USAGE: install.bat {drive:\NCOM-dir} {drive:\MS-Windows-dir} *
  71. echo * (EXAMPLE: install.bat c:\ncom c:\windows )                   *
  72. echo ****************************************************************
  73. :end